

const hospital = {
  state: {
    info: {},
    doctor:{},
    recordType:0
  },
  mutations: {
    SET_RECORD_TYPE: (state, info) => {
      state.recordType = info 
    },
    SET_DOCTOR: (state, info) => {
      state.doctor = info
    },
    CLEAR_DOCTOR: (state) => {
      state.doctor = {} 
    },
    SET_HOSPITAL: (state, info) => {
      state.info = info
    },
    CLEAR_HOSPITAL: (state) => {
      state.info = {}
    }
  }
}
export default hospital